package com.sx.medicinecard.service;

import com.alibaba.fastjson.JSONObject;
import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.google.protobuf.ServiceException;
import com.sx.medicinecard.common.ResponseResult;
import com.sx.medicinecard.entity.SxOrderInfoBrush;
import com.sx.medicinecard.entity.SxSignContractBrush;
import com.sx.medicinecard.entity.dto.SxSignContractBrushDto;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

/**
 * 签约表(SxSignContractBrush)表服务接口
 *
 * @author makejava
 * @since 2024-07-17 18:31:29
 */
public interface SxSignContractBrushService extends IService<SxSignContractBrush> {

    ResponseResult signAndPay(SxSignContractBrushDto sxSignContractBrushDto, HttpServletRequest request) throws ServiceException, AlipayApiException, UnsupportedEncodingException;

    SxOrderInfoBrush createOrderBrush(SxSignContractBrush sxSignContractBrush, String yuankeOrderNo,String receiveId,JSONObject payData);

    ResponseResult getSignUrlById(String signId);

    ResponseResult unSign(String phoneNo);

    ResponseResult signAndPayHy(SxSignContractBrushDto sxSignContractBrushDto, HttpServletRequest request) throws ServiceException;

    SxOrderInfoBrush createOrderBrushByPay(SxSignContractBrush sxSignContractBrush, String yuankeOrderNo, String s, JSONObject payData);

}

